<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    /*body   div  div p{color :blue}*/
    body> div>div> p{color :red}
    a:link{color:red}
    a:visited{color:green}
    a:hover{color:blue}
    a:active{color: yellow}
  </style>
</head>
<body>
<a href="http://www.baidu.com">百度</a>
<a href="http://www.douyin.com">抖音</a>
<a href="http://www.bilibili.com">哔哩哔哩</a>
<p>p1</p>
<div>
  <p>p2</p>
  <div><p>p3</p></div>
  <div>
    <p>p5</p>
    <div><p>p5</p></div>
  </div>
</div>
</body>
</html>